﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Template.Master" Inherits="System.Web.Mvc.ViewPage<IPagedList<JLL.China.Model.Event>>" %>

<%@ Import Namespace="JLL.China.Model.DTO" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
     <!--  start page-heading -->
     
        <%Html.RenderPartial("Side");%>
    <% Html.RenderPartial("Measage");%>
    <!-- end page-heading -->
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
        <tr>
            <th rowspan="3" class="sized">
                <img src="<%=Url.Content("~/Content/images/shared/side_shadowleft.jpg")%>" width="20"
                    height="300" alt="" />
            </th>
            <th class="topleft">
            </th>
            <td id="tbl-border-top">
                &nbsp;
            </td>
            <th class="topright">
            </th>
            <th rowspan="3" class="sized">
                <img src="<%=Url.Content("~/Content/images/shared/side_shadowright.jpg")%>" width="20"
                    height="300" alt="" />
            </th>
        </tr>
        <tr>
            <td id="tbl-border-left">
            </td>
         <td>
  <%--  <div id="table-content-left">--%>
    <div id="content-table-inner">
    <div id="pending-post-property-request">
        <!--  start product-table ..................................................................................... -->
        <form id="mainform" class="list_item_form" method="post">
        <input type="hidden" name="redirect" value="admins/index" />
        <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
            <tr>
                <th class="table-header-check">
                    <a id="toggle-all"></a>
                </th>
                <th class="table-header-repeat line-left minwidth-1">
                   <%--  <% if (this.Model.OrderBy.Equals(EventSearchOrder.Title) && this.Model.IsDescending)
                        { %>
                    <a href="<% = this.Model.GetURL(EventSearchOrder.Title, false) %>" class="sortby-desc">Title</a>
                    <%}
                        else
                        { %>
                    <a href="<% = this.Model.GetURL(EventSearchOrder.Title, true) %>" class="sortby-asc">Title</a>
                    <%} %>--%>
                     <a href="">Title</a>
                </th>
                
                <th class="table-header-repeat line-left minwidth-1">
                    <a href="">Summary</a>
                </th>
                <th class="table-header-repeat line-left minwidth-1">
                    <a href="">Details</a>
                </th>
                
                <th class="table-header-repeat line-left">
                    <a href="">Status</a>
                </th>
                <th class="table-header-options line-left">
                    <a href="">Options</a>
                </th>
            </tr>
            <% foreach (var item in this.Model )
               { 
            %>
            <tr>
                <td>
                    <input name="selected"  type="checkbox" value="<%=item.Event_ID%>" />
                </td>
                <td>
                    <%= item.Title%>
                </td>
                <td>
                    <%= item.EventSummary%>
                </td>
                <td>
                    Created by  : <%= item.CreatedBy%><br /><br />
                    Created on  : <%= item.DateCreated.ToString("dd-MMM-yyyy hh:mm tt")%><br /><br />
                    Event Color : <span style="background-color: <%= item.EventColor%>;"><font style="color:<%= item.EventColor%>; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></span>
                </td>
                <td>
                    <%= item.Status ? "Active" : "Inactive"%>
                </td>
                <td class="options-width">
                    <%= Html.ActionLink(" ", "Create", new { eventId = item.Event_ID, Language = item.LanguageFID }, new { @title = "View / Edit", @class = "icon-1 info-tooltip" })%>
                    <%= Html.ActionLink(" ", "Delete", new { id = item.Event_ID }, new { @title = "Delete", @class = "icon-2 info-tooltip remove-btn" })%> 
                    <%= Html.ActionLink(" ", "ChangeStatus", new { id = item.Event_ID,status = item.Status, Language = item.LanguageFID,orderby = "", descending = "" }, new { @title = "Change Status", @class = "icon-3 info-tooltip" })%>
                </td>
            </tr>
            <%} %>
        </table>
        <!--  end product-table................................... -->
       
        <!--  start actions-box ............................................... -->
       <div id="actions-box">
        <a href="" class="iconaction icon-cog"> </a>
            <a href="" class="action-slider"></a>
            <div id="actions-box-slider">
                <a class="iconaction icon-ok-circle"/>
                <%= Html.ActionLink("Active", "SelectedEvent", new { status = "active" }, new { @title = "Set selected status to active", @class = "action-edit action-invoke info-tooltip" })%>
                <a class="iconaction  icon-minus-sign"/>
                <%= Html.ActionLink("Inactive", "SelectedEvent", new { status = "inactive" }, new { @title = "Set selected status to inactive", @class = "action-edit action-invoke info-tooltip" })%>
                <a class="iconaction icon-trash "/> 
                <%= Html.ActionLink("Delete", "SelectedEvent", new { status = "remove" }, new { @title = "Delete selected", @class = "action-edit action-invoke-removed info-tooltip" })%>
            </div>
            <div class="clear">
            </div>
        </div>
        <!-- end actions-box........... -->
          <%Html.RenderPartial("PerPage", ViewData);%>
        <!--  start paging..................................................... -->
        <table border="0" cellpadding="0" cellspacing="0" id="paging-table">
            <tr>
                <td class="page-cell">
                    <div class="pager">
                        <%= Html.Pager(ViewData.Model.PageSize, ViewData.Model.PageNumber, ViewData.Model.TotalItemCount) %>
                    </div>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                  
                </td>
            </tr>
        </table>
        <!--  end paging................ -->
         </form>
        <div class="clear">
        </div>
    </div>
    <!-- end pending-post-property-request -->
</div>
</td>   
<td id="tbl-border-right">
            </td>
        </tr>
        <tr>
            <th class="sized bottomleft">
            </th>
            <td id="tbl-border-bottom">
                &nbsp;
            </td>
            <th class="sized bottomright">
            </th>
        </tr>
    </table>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CSS" runat="server">
  <link href="<%=Url.Content("~/Scripts/chosen/chosen.css")%>" rel="stylesheet" type="text/css" />
   <link href="<%=Url.Content("~/Scripts/qtip2/jquery.qtip.min.css") %>" rel="stylesheet"        type="text/css" />
      <style type="text/css">
        #product-table tr td
        {
            padding:8px;
        }
        .style1
        {
            width: 145%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="JS" runat="server">

    <script src="<%=Url.Content("~/Scripts/knockout/knockout.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/knockout/knockout.mapping.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jqueryui/jquery.ui.core.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jqueryui/jquery.ui.widget.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jqueryui/ui.checkbox.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jqueryui/jquery.bind.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jquery.pngFix.pack.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jquery.selectbox-0.5.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jquery.selectbox-0.5_style_2.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/qtip2/jquery.qtip.min.js")%>" type="text/javascript"></script>
<script src="<%=Url.Content("~/Scripts/chosen/chosen.jquery.min.js")%>" type="text/javascript"></script>
    <script src="<%=Url.Content("~/Scripts/Run.js")%>" type="text/javascript"></script>
      <script type="text/javascript">
        $(document).ready(function(){
         $(".czselect").chosen({ disable_search_threshold: 8, allow_single_deselect: true });
        });
        
    </script>
</asp:Content>


